Fix option parsing so that -a and --action work correctly.
authorCody Russell <cody@jhu.edu>
Mon, 13 Oct 2008 15:15:23 +0000 (15:15 +0000)
committerCody Russell <bratsche@src.gnome.org>
Mon, 13 Oct 2008 15:15:23 +0000 (15:15 +0000)
2008-10-13  Cody Russell <cody@jhu.edu>

        * test/testfilechooser.c: Fix option parsing so that -a and
        --action work correctly.

svn path=/trunk/; revision=21645

ChangeLog
tests/testfilechooser.c

index e6c54662e80afc6fbb18fa22c77ebb5a54e7c2e0..334c2b6760339618e4fb481228d31e8269fd8ec4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-13  Cody Russell <cody@jhu.edu>
+
+       * test/testfilechooser.c: Fix option parsing so that -a and
+       --action work correctly.
+
 2008-10-13  Christian Persch <chpe@gnome.org>
 
        Bug 555386 – format not a string literal and no format arguments
index 57b27f8cbe76285a18ee95b2b4c6c9d035dbbd44..7c008055ee4274888a9bcdd44ab20adb5a05e72c 100644 (file)
@@ -491,7 +491,7 @@ main (int argc, char **argv)
   char *backend = NULL;
   GError *error = NULL;
   GOptionEntry options[] = {
-    { "action", 'a', 0, G_OPTION_ARG_STRING, &action, "Filechooser action", "ACTION" },
+    { "action", 'a', 0, G_OPTION_ARG_STRING, &action_arg, "Filechooser action", "ACTION" },
     { "backend", 'b', 0, G_OPTION_ARG_STRING, &backend, "Filechooser backend (default: gtk+)", "BACKEND" },
     { "multiple", 'm', 0, G_OPTION_ARG_NONE, &multiple, "Select-multiple", NULL },
     { "right-to-left", 'r', 0, G_OPTION_ARG_NONE, &force_rtl, "Force right-to-left layout.", NULL },